window.Admob = {
   
    ShowInterstitialRewardAD(){
        let res = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/admob/Interstitial_Reward", "ShowInterstitialRewardAD","()I");
        return res;
    },
    ShowRewardAD(){
        let res = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/admob/Reward", "ShowRewardAD","()I");
        return res;
    },
    GetRewardAD(){
        let res = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/admob/Reward", "GetRewardAD","()I");
        return res;
    },
    GetInterstitialRewardAD(){
        let res = jsb.reflection.callStaticMethod("org/cocos2dx/javascript/admob/Interstitial_Reward", "GetInterstitialRewardAD","()I");
        return res;
    },
    /**
     * @type 需要下发哪种奖励，对应storage中的游戏类型
     * 
     * @reward 奖励内容
     */
    Reword(type, reward) {
        switch (type) {
            case "coin":
                let type_now = Number(Storage.Get_storage(Storage.GameMessageType.coin));
                Storage.Set_storage(Storage.GameMessageType.coin, type_now + reward);
                break;
            default:
                break;
        }
        
    },
    ShowRewordDialog() {
        //这里最好做个弹窗管理，每次看完广告的奖励，统一用这个弹窗展示
    }
}